<!DOCTYPE html>
<html>

<head>
    <title>USDT 转账demo</title>
    <meta charset="utf-8" />
    <meta name="viewport"
        content="width=device-width,user-scalable=no,initial-scale=1, minimum-scale=1,maximum-scale=1" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="full-screen" content="yes" />
    <meta name="screen-orientation" content="portrait" />
    <meta name="x5-fullscreen" content="true" />
    <meta name="360-fullscreen" content="true" />
    <meta name="renderer" content="webkit" />
    <meta name="force-rendering" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
</head>
<style>
    input {
        display: block;
        margin-bottom: 12px;
    }
</style>

<body>
    <div>
        <h1>
            <ul>
                <li>0xa71edc38d189767582c38a3145b5873052c3e47a</li>
                <li>0xefb5cbc1AF9E0aEFF044DDAA879c9be49a01E5DC</li>
                <li>0x652a71fe217F5D8F25e8257B23b5BE676d6Bd4DE</li>
                <li>0x0e842CB174ecd0094Bfa3AA69332bcdCBD97cF5c</li>
            </ul>
        </h1>
    </div>
    <div>
        <h1>当前登陆的账户address:</h1>
        <h2 id="cur_address">0xefb5cbc1AF9E0aEFF044DDAA879c9be49a01E5DC</h2>
        <h2>USDT余额:<p id="cur_balance">0.05</p>
        </h2>

    </div>
    <div>
        <h1>2.发行总量查询 totalSupply</h1>
        <p id="labTotalSupply">0</p>
        <button onclick="App.TotalSupply()">总量查询</button>
    </div>
    <div>
        <h1>3.账户余额查询 balanceOf</h1>
        <input type="text" id="balanceOf_address" placeholder="请输入查询地址">
        <p id="balanceOf_amount">0</p>
        <button onclick="App.BalanceOf()">查询余额</button>
    </div>
    <div>
        <h1>4.授权第三方权限 approve</h1>
        <input type="text" id="approve_amount" placeholder="请输入授权数量">
        <input type="text" id="approve_adress" placeholder="请输入授权地址">
        <button onclick="App.Approve()">授权</button>
    </div>
    <div>
        <h1>5.普通转账 transfer</h1>
        <input type="text" id="transfer_amount" placeholder="请输入转账数量">
        <input type="text" id="transfer_to" placeholder="请输入接受者地址">
        <button onclick="App.Transfer()">转账</button>
    </div>
    <div>
        <h1>6.调用第三方授权转账 transferFrom</h1>
        <input type="text" id="transferFrom_amount" placeholder="请输入转账数量">
        <input type="text" id="transferFrom_from" placeholder="请输入发送者地址">
        <input type="text" id="transferFrom_to" placeholder="请输入接受者地址">
        <button onclick="App.TransferFrom()">授权转账</button>
    </div>
    <div>
        <h1>7.授权额度查询 allowance</h1>
        <input type="text" id="allowance_adress" placeholder="请输入授权地址">
        <p id="allowance_amount">0</p>
        <button onclick="App.Allowance()">查询</button>
    </div>
    <div>
        <h1>8.随机一个账户</h1>
        <p id="random_amount">0</p>
        <p id="random_address">0</p>
        <button onclick="App.Random()">随机</button>
    </div>
    <div>
        <h1>9.授权并且转账</h1>
        <p id="allowanceTransfer_from">0</p>
        <p id="allowanceTransfer_to">0</p>
        <button onclick="App.Random()">随机</button>
    </div>
    <script src="./usdt.js"></script>
</body>

</html>